package com.hsd.factory;

public class BMWFactory {
    public BMW buildBMWCar(String msg){
        BMW bmw =null;
        switch (msg){
            case "X6":
                bmw = new BMW_X6();
                break;
            case "530":
                bmw = new BMW_530();
                break;
            case "550":
                bmw = new BMW_550();
                break;
        }
        return bmw;
    }
}
